from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    app_name: str = "DeepMedical API"
    database_url: str = "sqlite:///./deepmedical.db"  # 示例 SQLite 数据库 URL
    secret_key: str = "YOUR_SECRET_KEY"  # 替换为你自己的密钥
    algorithm: str = "HS256"
    access_token_expire_minutes: int = 30

    class Config:
        env_file = ".env"
        extra = "allow"  # 允许额外的字段

settings = Settings()